import React from 'react'
import {useNavigationType,useResolvedPath} from 'react-router-dom';

export default function News() {
  // console.log(useNavigationType());
  console.log(useResolvedPath('/user?id=1&name=苑少聪'));
  return (
    <div>
      <ul>
        <li>news001</li>
        <li>news002</li>
        <li>news003</li>
      </ul>
    </div>
  )
}
